package net.xo68.destiny.manager.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;



/** 
 * DistributedLock 实体
 * @author wuxie(16349023@qq.com)
 * @date 2020年12月17日 14:16:48
 *
 */
@ApiModel("DistributedLock 实体")
public class DistributedLock implements java.io.Serializable{
	
	private static final long serialVersionUID = 1L;

	/**
	 * 锁标识
	 */
	@ApiModelProperty("锁标识")
	private String lockKey;
	/**
	 * 锁创建时间
	 */
	@ApiModelProperty("锁创建时间")
	private Date createTime;
	/**
	 * 锁状态，RUN，SUCCESS，FAIL
	 */
	@ApiModelProperty("锁状态，RUN，SUCCESS，FAIL")
	private String lockStatus;
	/**
	 * 锁持有者
	 */
	@ApiModelProperty("锁持有者")
	private String lockHold;
	/**
	 * 锁过期时间
	 */
	@ApiModelProperty("锁过期时间")
	private Date lockExpire;
	/**
	 * 锁周期，单位：秒
	 */
	@ApiModelProperty("锁周期，单位：秒")
	private Long lockPeriod;
	
	@Override
	public String toString(){
		return "lockKey:"+this.lockKey+","+"createTime:"+this.createTime+","+"lockStatus:"+this.lockStatus+","+"lockHold:"+this.lockHold+","+"lockExpire:"+this.lockExpire+","+"lockPeriod:"+this.lockPeriod;
	}
	

	public String getLockKey() {
		return this.lockKey;
	}
	public void setLockKey(String value) {
		this.lockKey = value;
	}	

	public Date getCreateTime() {
		return this.createTime;
	}
	public void setCreateTime(Date value) {
		this.createTime = value;
	}	

	public String getLockStatus() {
		return this.lockStatus;
	}
	public void setLockStatus(String value) {
		this.lockStatus = value;
	}	

	public String getLockHold() {
		return this.lockHold;
	}
	public void setLockHold(String value) {
		this.lockHold = value;
	}	

	public Date getLockExpire() {
		return this.lockExpire;
	}
	public void setLockExpire(Date value) {
		this.lockExpire = value;
	}	

	public Long getLockPeriod() {
		return this.lockPeriod;
	}
	public void setLockPeriod(Long value) {
		this.lockPeriod = value;
	}	
}